<template>
  <a-card :bordered="false" class="proCard">
    <div class="result-box">
      <a-result status="success" title="操作成功" />
      <div class="result-box-extra">
        <p>已提交申请，等待财务部门审核。</p>
      </div>
      <a-space class="mb-4 mt-8">
        <a-button type="primary" @click="goHome">回到首页</a-button>
        <a-button>查看详情</a-button>
        <a-button>打印</a-button>
      </a-space>
    </div>
  </a-card>
</template>
<script lang="ts" setup>
  import { useRouter } from 'vue-router';

  const router = useRouter();

  function goHome() {
    router.push('/');
  }
</script>
<style lang="less" scoped>
  .result-box {
    width: 40%;
    margin: 0 auto;
    text-align: center;
    padding-top: 5px;

    &-extra {
      padding: 24px 40px;
      background: var(--color-fill-2);
      border-radius: 4px;
      text-align: center;
    }
  }
</style>
